#include <iostream>

int main(){
    int dividend,divisor;
    std::cin >> dividend >> divisor;
    std::cout << dividend << '/' << divisor << '=' << dividend / divisor;
    long long remain = dividend % divisor;
    if(!remain){std::cout << ".0" << std::endl;return 0;}
    std::cout << '.';

    int cnt = 0;
    std::string frac;
    while(remain &&cnt < 20){
        remain *= 10;
        frac += (remain/divisor) + '0';
        remain %= divisor;
        cnt++;
    }
    while (!frac.empty() && frac.back() == '0') frac.pop_back();
    std::cout << frac << std::endl;
    return 0;
}